import {
	GetVideoLabel
} from '@/api/index.js'

const actions = {
	// 获取视频页标签
	async GetVideoLabel(state) {
		let info = await GetVideoLabel()
		state.commit('setVideoLabel',info['data'].slice(0,20))
		return info['data'][0]
	}
}


const mutations = {
	// 修改视频页标签
	setVideoLabel(state,obj) {
		state.VideoLabel = obj
	}
}

const state = {
	VideoLabel: [], // 视频页标签
}

export default ({
	state,
	mutations,
	actions,
	namespaced: true,
})
